package com.tlgen.config;

import com.tlgen.model.AnnoClass;
import com.tlgen.model.FieldVO;
import com.tlgen.service.RefreshService;
import com.tlgen.utils.ScanUtils;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Objects;

import static com.tlgen.utils.ReflectUtils.*;
import static com.tlgen.utils.ReflectUtils.setAnnoFieldValue;

@Component
public class ApplicationInitializingBean implements InitializingBean {

    @Autowired
    private RefreshService refreshService;

    @Override
    public void afterPropertiesSet() {
        refreshService.refreshDefinitionBean();
    }

}
